Optimal. Leaf size=61 \[ p^2 x^2-\frac {p \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b}+\frac {\left (a+b x^2\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2504, 2436,
2333, 2332} \begin {gather*} \frac {\left (a+b x^2\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )}{2 b}-\frac {p \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b}+p^2 x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2332
Rule 2333
Rule 2436
Rule 2504
Rubi steps
\begin {align*} \int x \log ^2\left (c \left (a+b x^2\right )^p\right ) \, dx &=\frac {1}{2} \text {Subst}\left (\int \log ^2\left (c (a+b x)^p\right ) \, dx,x,x^2\right )\\ &=\frac {\text {Subst}\left (\int \log ^2\left (c x^p\right ) \, dx,x,a+b x^2\right )}{2 b}\\ &=\frac {\left (a+b x^2\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )}{2 b}-\frac {p \text {Subst}\left (\int \log \left (c x^p\right ) \, dx,x,a+b x^2\right )}{b}\\ &=p^2 x^2-\frac {p \left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b}+\frac {\left (a+b x^2\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )}{2 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 63, normalized size = 1.03 \begin {gather*} \frac {1}{2} \left (\frac {\left (a+b x^2\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )}{b}-2 p \left (-p x^2+\frac {\left (a+b x^2\right ) \log \left (c \left (a+b x^2\right )^p\right )}{b}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.69, size = 1034, normalized size = 16.95
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1034\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 97, normalized size = 1.59 \begin {gather*} -b p {\left (\frac {x^{2}}{b} - \frac {a \log \left (b x^{2} + a\right )}{b^{2}}\right )} \log \left ({\left (b x^{2} + a\right )}^{p} c\right ) + \frac {1}{2} \, x^{2} \log \left ({\left (b x^{2} + a\right )}^{p} c\right )^{2} + \frac {{\left (2 \, b x^{2} - a \log \left (b x^{2} + a\right )^{2} - 2 \, a \log \left (b x^{2} + a\right )\right )} p^{2}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 96, normalized size = 1.57 \begin {gather*} \frac {2 \, b p^{2} x^{2} - 2 \, b p x^{2} \log \left (c\right ) + b x^{2} \log \left (c\right )^{2} + {\left (b p^{2} x^{2} + a p^{2}\right )} \log \left (b x^{2} + a\right )^{2} - 2 \, {\left (b p^{2} x^{2} + a p^{2} - {\left (b p x^{2} + a p\right )} \log \left (c\right )\right )} \log \left (b x^{2} + a\right )}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.59, size = 90, normalized size = 1.48 \begin {gather*} \begin {cases} - \frac {a p \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{b} + \frac {a \log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}}{2 b} + p^{2} x^{2} - p x^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )} + \frac {x^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}}{2} & \text {for}\: b \neq 0 \\\frac {x^{2} \log {\left (a^{p} c \right )}^{2}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.77, size = 96, normalized size = 1.57 \begin {gather*} \frac {{\left (2 \, b x^{2} + {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right )^{2} - 2 \, {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right ) + 2 \, a\right )} p^{2} - 2 \, {\left (b x^{2} - {\left (b x^{2} + a\right )} \log \left (b x^{2} + a\right ) + a\right )} p \log \left (c\right ) + {\left (b x^{2} + a\right )} \log \left (c\right )^{2}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.23, size = 70, normalized size = 1.15 \begin {gather*} p^2\,x^2+{\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}^2\,\left (\frac {a}{2\,b}+\frac {x^2}{2}\right )-p\,x^2\,\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )-\frac {a\,p^2\,\ln \left (b\,x^2+a\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________